package com.operation.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.operation.PROJECT_URL;
import com.operation.form.ReserveForm;
import com.operation.service.ReserveService;

/**
 * Handles requests for the application home page.
 */
@Controller
@RequestMapping(PROJECT_URL.MOBILE + "/reserve")
public class ReserveController extends SuperController{
	@Resource
	private ReserveService reserveService;
	
	
	//매장등록
	@RequestMapping(value = "/createShop", method = RequestMethod.GET)
	public ModelAndView mybatis(HttpServletRequest request, ReserveForm form,
			BindingResult errors, ModelMap model) {		
		
		//ModelAndView mav = new ModelAndView();
		//mav.addObject("mybatis", reserveService.createShop(form));    
		//mav.setViewName("JSON");
		reserveService.createShop(form);
		return null;
	}	
}
